﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using System.Xml.Serialization;
using System.ComponentModel;

namespace BDSim
{
    /// <summary>
    /// 地理环境
    /// </summary>
    public class GeographyEnvModel : EnvBaseModel
    {
        #region 字段和属性
        /// <summary>
        /// 地理环境中的模型列表
        /// </summary>
        private ObservableCollection<GeographyEnvModel> _GeographyEnvModelList = new ObservableCollection<GeographyEnvModel>();
        [Browsable(false)]
        public ObservableCollection<GeographyEnvModel> GeographyEnvModelList
        {
            get { return _GeographyEnvModelList; }
            set { _GeographyEnvModelList = value; NotifyPropertyChanged("GeographyEnvModelList"); }
        }

        #endregion

        #region 构造函数
        /// <summary>
        /// 构造函数
        /// </summary>
        public GeographyEnvModel()
        {

        }

        #endregion

        #region 方法
        /// <summary>
        /// 初始化函数
        /// </summary>
        public override bool Init()
        {
            foreach (var item in GeographyEnvModelList)
            {
                item.Init();
            }
            return true;
        }

        #endregion
    }
}
